// GeneralPage.cpp : implementation file
//

#include "stdafx.h"
#include "txt_pqdif.h"
#include "GeneralPage.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

static const int INCREMENT_BUF_LEN = 33;

/////////////////////////////////////////////////////////////////////////////
// CGeneralPage property page

IMPLEMENT_DYNCREATE(CGeneralPage, CPropertyPage)

CGeneralPage::CGeneralPage() : CPropertyPage(CGeneralPage::IDD)
{
	//{{AFX_DATA_INIT(CGeneralPage)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

CGeneralPage::~CGeneralPage()
{
}

void CGeneralPage::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CGeneralPage)
	DDX_Control(pDX, IDC_CHECK_AUTORMS, m_cbxAutoRms);
	DDX_Control(pDX, IDC_CHECK_TRIGGER, m_cbxTrigger);
	DDX_Control(pDX, IDC_EDIT_FREQUENCY, m_edtFrequency);
	DDX_Control(pDX, IDC_EDIT_INCREMENT, m_edtIncrement);
	DDX_Control(pDX, IDC_COMBO_TYPE, m_cboType);
	DDX_Control(pDX, IDC_CHECK_TIME, m_cbxTime);
	DDX_Control(pDX, IDC_CHECK_NAME, m_cbxName);
	DDX_Control(pDX, IDC_CHECK_INCREMENT, m_cbxIncrement);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CGeneralPage, CPropertyPage)
	//{{AFX_MSG_MAP(CGeneralPage)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CGeneralPage message handlers

BOOL CGeneralPage::OnInitDialog() 
{
	CPropertyPage::OnInitDialog();
	
	//FillGUIDCombo (m_cboType, "ID_QT_");
	m_edtIncrement.SetLimitText (INCREMENT_BUF_LEN - 1);
	m_edtFrequency.SetLimitText (INCREMENT_BUF_LEN - 1);


	return TRUE; 
}

